{if $smarty.request.is_ajax neq 1}
<include file="inc:header" />	
<div class="page" id='{$data.act}'>	
<?php
	$this->_var['back_url'] = wap_url("index","uc_center#index");
	$this->_var['back_page'] = "#uc_center";
	$this->_var['back_epage'] = $_REQUEST['epage']=="" ? "#uc_center" : "#".$_REQUEST['epage'];
?>
<include file="inc:title" />
<div class="content infinite-scroll "  data-distance="{$data.rs_count}" now_page="1">
	<!-- 这里是页面内容区 -->
<!--我的投资-->
<div class="{$data.act}-box"  all_page="{$data.page.page_total}" ajaxurl="{wap_url x="index" r="uc_invest#index" p="status=$data.status"}">
	<div class="blank15"></div>
	<div class="choose">
		<table>
			<tr>
				<th {if $data.status eq 0}class="y"{/if}><a href="#" onclick="reloadpage('{wap_url a="index" r="uc_invest" p="status=0"}','#uc_invest','.{$data.act}-box')">全部</a></th>
				<th {if $data.status eq 1}class="y"{/if}><a href="#" onclick="reloadpage('{wap_url a="index" r="uc_invest" p="status=1"}','#uc_invest','.{$data.act}-box')">进行中</a></th>
				<th {if $data.status eq 2}class="y"{/if}><a href="#" onclick="reloadpage('{wap_url a="index" r="uc_invest" p="status=2"}','#uc_invest','.{$data.act}-box')">还款中</a></th>
				<th {if $data.status eq 3}class="y"{/if}><a href="#" onclick="reloadpage('{wap_url a="index" r="uc_invest" p="status=3"}','#uc_invest','.{$data.act}-box')">已还清</a></th>
				<th {if $data.status eq 4}class="y"{/if}><a href="#" onclick="reloadpage('{wap_url a="index" r="uc_invest" p="status=4"}','#uc_invest','.{$data.act}-box')">满标</a></th>
				<th {if $data.status eq 5}class="y"{/if}><a href="#" onclick="reloadpage('{wap_url a="index" r="uc_invest" p="status=5"}','#uc_invest','.{$data.act}-box')">流标</a></th>
			</tr>
		</table>
	</div>
	<div class="blank15"></div>
	<ul class="recommended_nav_2 invest">
		{/if}

		{foreach from=$data.item item="deal"}
			<li class="clearfix" >
				
					<div class="novice f_l">
						{if $deal.is_advance eq 1 && $deal.start_time gt TIME_UTC}
						<img src="{$TMPL}/images/novice_0.png" width="100%" height="100%"/>
						{elseif $deal.is_new eq 1}
						<img src="{$TMPL}/images/novice.png" width="100%" height="100%"/>
						{/if}
					</div>
					<div class="title_nav bb1">
						{if $deal.is_wait eq 1}<span class="state  c666666">
			            	{else}
							{if $deal.deal_status eq 0}<span class="state  c666666">{/if}
							{if $deal.deal_status eq 1 && $deal.remain_time gt 0}<span class="state  c56b1ea">{/if}
							{if $deal.deal_status eq 1 && $deal.remain_time lte 0}<span class="state  c666666">{/if}
							{if $deal.deal_status eq 2}<span class="state  ea544a">{/if}
							{if $deal.deal_status eq 3}<span class="state  c666666">{/if}
							{if $deal.deal_status eq 4}<span class="state  c66d191">{/if}
							{if $deal.deal_status eq 5}<span class="state  c666666">{/if}
							{/if}
								
							{if $deal.is_wait eq 1}未开始
			            	{else}
							{if $deal.deal_status eq 0}等待材料{/if}
							{if $deal.deal_status eq 1 && $deal.remain_time gt 0}进行中{/if}
							{if $deal.deal_status eq 1 && $deal.remain_time lte 0}已过期{/if}
							{if $deal.deal_status eq 2}已满标{/if}
							{if $deal.deal_status eq 3}已流标{/if}
							{if $deal.deal_status eq 4}还款中{/if}
							{if $deal.deal_status eq 5}已还清{/if}
							{/if}
							</span>
						<span class="name">{$deal.name}</span>
						<!--
						<span class="r_state">{function name="loantypename" v="$deal.loantype" type=1}</span>
					    -->
					</div>
					<div class=" con_height bb1">
						<div class="  w_b  pt tc">
							<div class=" tl lv"><i class="big">{function name="number_format" v="$deal.rate" f="2"}</i><i class="unit">%</i></div>
							<div class=" tl je"><i class="small">{function name="replacemoney" v="$deal.u_load_money"}</i><i class="unit">万</i></div>
							<div class=" tl sj"><i class="small">{$deal.repay_time}</i><i class="unit">{if $deal.repay_time_type eq 0}天{else}个月{/if}</i></div>
						<div class="w_b_f_1"></div>
						<div  class="progress-radial_parent ">
							<div class="progress-radial  progress-{if $deal.deal_status gte 4}100{else}{function name="round" v=$deal.progress_point f=0}{/if}
							{if $deal.is_wait eq 1} c999999
			            	{else}
							{if $deal.deal_status eq 0}  c999999 {/if}
							{if $deal.deal_status eq 1 && $deal.remain_time gt 0}  c56b1ea {/if}
							{if $deal.deal_status eq 1 && $deal.remain_time lte 0}  c999999 {/if}
							{if $deal.deal_status eq 2}  ea544a {/if}
							{if $deal.deal_status eq 3}  c999999  {/if}
							{if $deal.deal_status eq 4}  c66d191  {/if}
							{if $deal.deal_status eq 5}  c999999  {/if}
							{/if}
							"><b></b></div>
						</div>
					</div>
						</div>	
						<div class="title_nav ">
								<span class="name show_time_name">发布日期</span>
								<span class="name show_time">{function name="to_date" v="$deal.start_time" f="Y-m-d"}</span>
								{if $deal.has_transfer gt 0 && $deal.t_user_id <> $data.user_id}
								<span class="r_state">已转让</span>
								{else}
									{if $deal.contract_id}
										<a href="#" onclick="RouterURL('{wap_url a="index" r="fddcontract_view" p="contract_id=$deal.contract_id"}','#fddcontract_view',2);" class="r_state">查看合同</a>
									{/if}
									<a href="#" onclick="RouterURL('{wap_url a="index" r="deal_mobile" p="id=$deal.id&epage=$data.act"}','#deal_mobile',2);" class="r_state">标的详情</a>
								{if $deal.deal_status gte 4}
									<a href="#" onclick="RouterURL('{wap_url a="index" r="uc_invest_refdetail" p="id=$deal.id&load_id=$deal.load_id"}','#uc_invest_refdetail',2);" class="r_state ea544a">回款详情</a>
								{/if}
								{/if}
						</div>
			</li>
			{/foreach}	
{if $smarty.request.is_ajax neq 1}		
	</ul>
	<div class="blank15"></div>
</div>
<!-- 加载提示符 -->
<div class="infinite-scroll-preloader">
  <div class="preloader">
  </div>
</div>
<include file="inc:footer" />
{/if}






